<?php
if($_SERVER['REMOTE_ADDR'] == '127.0.0.1')
{
	$base_url = "http://www.iqtest.com/";
}
else 
{
	$base_url = "http://iqtest.msitrsu.com/";
}
?> 
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>IQ TEST</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="<?php echo $base_url;?>css/bootstrap.css" media="screen">
    <link rel="stylesheet" href="<?php echo $base_url;?>css/bootswatch.min.css">
	<link rel="stylesheet" href="<?php echo $base_url;?>css/form_validation.css">
	<link rel="stylesheet" href="<?php echo $base_url;?>css/jquery.jqplot.min.css">
	
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="<?php echo $base_url;?>js/html5shiv.js"></script>
      <script src="<?php echo $base_url;?>js/respond.min.js"></script>
    <![endif]-->
	<script src="<?php echo $base_url;?>js/jquery-1.10.2.min.js"></script>
	<script src="<?php echo $base_url;?>js/bootstrap.min.js"></script>
    <script src="<?php echo $base_url;?>js/bootswatch.js"></script>
    <script src="<?php echo $base_url;?>js/jquery.jqplot.min.js"></script>
    <script src="<?php echo $base_url;?>js/jqplot.donutRenderer.min.js"></script>
    <script src="<?php echo $base_url;?>js/jqplot.pieRenderer.min.js"></script>
   
  </head>
  <body>

<?php include ("../menu.php"); ?>
    <div class="container">  
      <!-- Forms
      ================================================== -->
      <div>
        <div class="row">
          <div class="col-lg-12">
            <div class="page-header">
              <h2 id="forms">กราฟ</h2>
            </div>
          </div>
        </div>
        <div class="row" id="divChart">
           <?php include ("chart_ajax.php"); ?> 
        </div>
      </div>
      <footer>
        <div class="row">
          <div class="col-lg-12">
            <ul class="list-unstyled">
              <li class="pull-right"><a href="#top">Back to top</a></li>
            </ul>
          </div>
        </div>
      </footer>
    </div>
  </body>
</html>

